package com.zzh.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author wenrouyue
 * @FileName: UserSecretKey
 * @description
 * @create 2023/2/15-15:20
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user_secret_key")
public class UserSecretKey {
    @TableId
    private Integer secretKeyId;

    private Integer userId;

    private String secretType;

    private String secretKey;

    @TableLogic
    private String isDelete;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    public UserSecretKey(Integer userId,String secretType,String secretKey){
        this.userId = userId;
        this.secretKey = secretKey;
        this.secretType = secretType;
    }
}
